#===============================================
# Code written by Joe France (joeprogram.com)
# Released under code.google.com/p/video-scholar/
# with the MIT license (aka, the do-whatever-you-want-with-it license)
#===============================================


import pyglet


from State import State
from MainState import MainState

class StartState( State ):
	'''
	A State is a mode the program can be in
	And controls what elements are available
	'''
	
	def __init__( self, app ):
		
		super(StartState, self).__init__( app )
		
		# Setup the loading label		
		self.label = pyglet.text.Label(
			'Load a Video',
			font_name = 'Trebuchet MS',
			font_size = 36,
			x = self.app.get_window().width//2, y=self.app.get_window().height//2,
			anchor_x='center', anchor_y = 'center',
		)

	def draw( self ):
		self.label.draw()
	
	def mouse_press( self, x, y, button, modifiers ):
		self.load_video()
		
		
		
			